﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Beeldbankmvc.Models.RegisterModel>" %>
<%@ Import Namespace="Beeldbankmvc.Helpers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"><%=DynamicContent.getTitle(Request.Path) %></asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="page-title">
        <h1><%=DynamicContent.getTitle(Request.Path) %></h1>
    </div>
    <%=DynamicContent.getBodyText(Request.Path)%>

    <div id="register">
        <% using (Html.BeginForm())
           { %>
        <%: Html.ValidationSummary(true, "Het aanmaken van het account is mislukt! Corrigeer de fouten en probeer het opnieuw.")%>
        <fieldset>
            <legend>Aanmaken persoonlijk profiel</legend>
            <p>
                <%: Html.LabelFor(m => m.UserName) %>
                <%: Html.TextBoxFor(m => m.UserName) %>
                <%: Html.ValidationMessageFor(m => m.UserName) %>
            </p>
            <p>
                <%: Html.LabelFor(m => m.Email) %>
                <%: Html.TextBoxFor(m => m.Email) %>
                <%: Html.ValidationMessageFor(m => m.Email) %>
            </p>
            <p>
                <%: Html.LabelFor(m => m.Password) %>
                <%: Html.PasswordFor(m => m.Password) %>
                <%: Html.ValidationMessageFor(m => m.Password) %>
            </p>
            <p>
                <%: Html.LabelFor(m => m.ConfirmPassword) %>
                <%: Html.PasswordFor(m => m.ConfirmPassword) %>
                <%: Html.ValidationMessageFor(m => m.ConfirmPassword) %>
            </p>
            <p>
                <%: Html.LabelFor(m => m.Agreement) %>
                <%: Html.CheckBoxFor(m => m.Agreement)%> (<%:Html.ActionLink("Voorwaarden", "Disclaimer", "Miscellaneous")%>)
                <%: Html.ValidationMessageFor(m => m.Agreement)%>
            </p>
        </fieldset>
        <p>
            <input type="submit" class="button" value="Registreren" />
        </p>
        <% } %>
    </div>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="AsideContent" runat="server">

        <% Html.RenderAction("Index2", "FilmStrip", new { number = 6 }); %>

</asp:Content>
